package com.f5.management.service.impl;

import com.f5.management.dao.BuildingDAO;
import com.f5.management.dao.UserDAO;
import com.f5.management.entity.Building;
import com.f5.management.entity.User;
import com.f5.management.entity.dto.RealEstateUserDto;
import com.f5.management.service.BuildingService;
import com.f5.management.service.UserService;
import com.f5.management.service.UserService2;
import com.f5.management.utils.PageResult;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserServiceImpl implements UserService2 {
    @Autowired
    private UserDAO userDAO;

    //添加
    @Override
    public int add(RealEstateUserDto realEstateUserDto) {

        return userDAO.add(realEstateUserDto);
    }

    @Override
    public int update(RealEstateUserDto realEstateUserDto) {
        return userDAO.update(realEstateUserDto);
    }

    @Override
    public int findRidByName(String memberName) {
        return userDAO.findRidByName(memberName);
    }


}















